package com.smart.campus.school.domain;

import com.smart.campus.common.annotation.Excel;
import com.smart.campus.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @Author: 729002330@qq.com
 * @date :2020-05-30
 */
public class PersonnelInfo extends SysUser {
    @Excel(name = "身份证号")
    private String cardId;
    @Excel(name = "学历")
    private String education;
    @Excel(name = "最高学历学校")
    private String college;

    public PersonnelInfo(){}
    public PersonnelInfo(Long userId){
        this.setUserId(userId);
    }
    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("loginName", getLoginName())
                .append("userName", getUserName())
                .append("userType", getUserType())
                .append("email", getEmail())
                .append("phonenumber", getPhonenumber())
                .append("sex", getSex())
                .append("avatar", getAvatar())
                .append("password", getPassword())
                .append("salt", getSalt())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("loginIp", getLoginIp())
                .append("loginDate", getLoginDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("dept", getDept())
                .append("roles", getRoles())
                .append("cardId", getCardId())
                .append("education", getEducation())
                .append("college", getCollege())
                .toString();
    }
}
